package it.unibo.convoycruisecontrol.chiefboatsubsystem.presentation.swing;

import it.unibo.convoycruisecontrol.chiefboatsubsystem.ControlPanel;

public class ControlPanelController {

	private ControlPanel controlPanel = null;

	public ControlPanelController(ControlPanel cp)
	{
		this.controlPanel = cp;
	}
	
	
	public void startConvoy()
	{
		controlPanel.startConvoy();
	}
	
	public void stopConvoy()
	{
		controlPanel.stopConvoy();
	}
	
	public void setConvoySpeed(float speed)
	{
		controlPanel.setSpeed(speed);
	}
}
